<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	  <%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
	  
 <c:choose>
<c:when test="${msg=='新增成功' }">
 <script>alert('新增成功')</script>
</c:when>
</c:choose>

<%request.removeAttribute("msg"); %>
<!DOCTYPE html>
<html>
<head>
<meta charset="gbk">
<title>添加类别</title>
<link type="text/css" rel="stylesheet"
	href="fontsawesome/css/font-awesome.css" />
<link type="text/css" rel="stylesheet" href="css/style_index.css" />
<link type="text/css" rel="stylesheet" href="css/datepicker.css" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
	@keyframes fade-in {  
    0% {opacity: 0;}/*初始状态 透明度为0*/  
    40% {opacity: 0;}/*过渡状态 透明度为0*/  
    100% {opacity: 1;}/*结束状态 透明度为1*/  
	}  
	
	@-webkit-keyframes fade-in {/*针对webkit内核*/  
    0% {opacity: 0;}  
    40% {opacity: 0;}  
    100% {opacity: 1;}  
	}  
	
	body {    
    animation: fade-in;/*动画名称*/  
    animation-duration: 1.5s;/*动画持续时间*/  
    -webkit-animation:fade-in 1.5s;/*针对webkit内核*/  
	}  
</style>
</head>
<body>
	<div class="main_box">
		<h2>
			<span></span>添加类别
		</h2>
		<div class="cont_box">
		<c:choose>
				<c:when test="${lb.id!=null}">
					<form action="lb?flag=update" method="post">
				</c:when>
				<c:when test="${lb.id==null}">
					<form action="lb?flag=add" method="post">
				</c:when>
			</c:choose>
				<input type="hidden" value="${lb.id}" name="id">
				<ul class="addpro_box adduser_box">
					<li><label>类别名称：</label><input type="text" placeholder="请输入类别名称"
						name="lbname"  data-rule-fullname="true"
						required="required" value="${lb.lbname }"/></li>
                    <li><label>类别参数：</label> <input type="text" placeholder="请输入类别参数"
                                                  name="lbcs"  data-rule-fullname="true" oninput="value=value.replace(/[^\d]/g,'')"
                                                  required="required" value="${lb.lbcs}"/></li>
				</ul>
				<c:choose>
					<c:when test="${lb.id==null}">
						<div class="probtn_box clearfix">
							<input type="submit" value="新增类别" class="btn blue_btn" style="margin-left: 180px;	"/>
						</div>
					</c:when>
					<c:when test="${lb.id!=null}">
						<div class="probtn_box clearfix">
							<input type="submit" value="提交修改" class="btn blue_btn" style="margin-left: 180px;	"/>
						</div>
					</c:when>
				</c:choose>
			</form>
		</div>
	</div>
</body>
</html>